package dao;

import java.util.List;

import entityJPA.Candidatecomment;

/**
 * 
 * This interface defines the common methods for
 * JDBCCandidateCommentDAO and JPACandidateCommentDAO classes.
 *
 */
public interface ICandidateCommentDAO {
	
	/**
	 * Inserts into database a new candidateComment.       
	 * @param candidateComment        
	 */
	public void insert(Candidatecomment candidateComment);
	
	/**
	 * Updates a candidateComment in database.
	 * @param candidateComment        
	 */        
	public void update(Candidatecomment candidateComment);
	
	/**
	 * Deletes a candidateComment from database.
	 * @param candidateComment
	 */
	public void delete(Candidatecomment candidateComment);
	
	/**
	 * Finds a specific candidateComment given the primary key.
	 * @param idCandidateComment
	 * @return a CandidateComment instance which has the same idCandidateComment
	 */
	public Candidatecomment findById(int idCandidateComment);
	
	/**
	 * Finds all candidateComments in database.
	 * @return List<CandidateComment>
	 */
	public List<Candidatecomment> findAll();
}
